﻿package com.codingbros.countdown.view 
{
	import flash.text.Font;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	/**
	 * ...
	 * @author peter@codingbros.com
	 */
	public class TextUtils 
	{
		public static var projectFont:Font = new Helvetica();
		
		public function TextUtils() 
		{
			
		}
		
		public static function setupTextField(field:TextField, size:int , color:uint): void {
			var format:TextFormat = new TextFormat();
			format.size = size;
			format.color = color;
			format.font = projectFont.fontName;
			
			field.defaultTextFormat = format;
			field.embedFonts = true;
		}
		
	}
	
}